/* ==========================================================================
   GH Talent — Global Stylesheet
   Anhui Guohe Project Investment Co., Ltd.
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-900: #0a2540;
  --brand-800: #0f3a5f;
  --brand-700: #14507f;
  --brand-600: #1a6ba8;
  --brand-500: #2389d1;
  --brand-300: #7cc0ea;
  --brand-050: #eef6fc;

  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-100: #fef3c7;

  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-400: #98a2b3;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;

  /* Semantic */
  --ok: #067647;
  --warn: #b54708;

  /* Type scale (fluid) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  --fs-lg: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-xl: clamp(1.6rem, 1vw + 1.35rem, 2.1rem);
  --fs-2xl: clamp(2rem, 1.8vw + 1.5rem, 3.2rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 44px rgba(10, 37, 64, 0.14);

  --container: 1180px;
  --header-h: 68px;

  --font-sans: "Inter", "Segoe UI", "Hiragino Sans", "Noto Sans JP",
    "Noto Sans KR", "Noto Sans Arabic", "Segoe UI Historic", "Arial",
    "Helvetica Neue", sans-serif;
  --font-display: "Inter", "Segoe UI Semibold", "Hiragino Sans",
    "Noto Sans Arabic", "Arial", sans-serif;
}

/* ---------------------------------------------------------------- Reset -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

/* --------------------------------------------------------------- Layout -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--brand {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-3);
}

.section--brand .eyebrow {
  color: var(--brand-300);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

.section--brand h1,
.section--brand h2,
.section--brand h3 {
  color: #fff;
}

h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-xl);
  font-weight: 750;
}

h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

p {
  margin: 0 0 var(--sp-4);
}

.lead {
  font-size: var(--fs-md);
  color: var(--ink-500);
}

.section--brand .lead {
  color: rgba(255, 255, 255, 0.82);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* --------------------------------------------------------------- Header -- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.98rem;
  color: var(--ink-900);
}

.brand__sub {
  font-size: 0.68rem;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--brand-600);
}

.nav__link[aria-current="page"] {
  color: var(--brand-700);
  border-bottom-color: var(--brand-600);
}

/* ------------------------------------------------------ Language switcher -- */
.lang {
  position: relative;
  flex-shrink: 0;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.lang__toggle:hover {
  border-color: var(--brand-500);
  background: var(--brand-050);
}

.lang__toggle:focus-visible {
  outline: 3px solid rgba(35, 137, 209, 0.45);
  outline-offset: 2px;
}

.lang__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang__caret {
  font-size: 0.6rem;
  color: var(--ink-400);
  transition: transform 0.18s ease;
}

.lang__toggle[aria-expanded="true"] .lang__caret {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 208px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  list-style: none;
  margin: 0;
  z-index: 60;
}

.lang__menu[hidden] {
  display: none;
}

.lang__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.lang__item:hover {
  background: var(--brand-050);
  color: var(--brand-700);
}

.lang__item:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: -2px;
}

.lang__item[aria-current="true"] {
  background: var(--brand-050);
  color: var(--brand-700);
}

.lang__item[aria-current="true"]::after {
  content: "✓";
  margin-left: auto;
  color: var(--brand-600);
  font-weight: 700;
}

.lang__native {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-400);
}

/* ---------------------------------------------------------- Mobile nav -- */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--ink-700);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(35, 137, 209, 0.45);
  outline-offset: 2px;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----------------------------------------------------------------- Hero -- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 62%, var(--brand-600) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 12% 82%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 15px;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-5);
}

.hero__lead {
  font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(6px);
}

.hero__panel h2 {
  font-size: var(--fs-base);
  color: #fff;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.hero__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.hero__panel-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
}

.hero__panel-list .dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-500);
  color: var(--brand-900);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

/* -------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(35, 137, 209, 0.55);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--brand-700);
  box-shadow: var(--shadow-lg);
}

.btn--accent {
  background: var(--accent-500);
  color: var(--brand-900);
  box-shadow: var(--shadow);
}

.btn--accent:hover {
  background: var(--accent-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-300);
}

.btn--ghost:hover {
  background: var(--brand-050);
  border-color: var(--brand-600);
}

.btn--onbrand {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--onbrand:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.btn--block {
  width: 100%;
}

/* -------------------------------------------------------------- Sections -- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-300);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--brand-050);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: var(--sp-4);
}

.card h3 {
  font-size: 1.06rem;
  margin-bottom: var(--sp-2);
}

.card p:last-child {
  margin-bottom: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-600);
  text-decoration: none;
}

.card__link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-5);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4vw + 1.3rem, 2.6rem);
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1.1;
  margin-bottom: var(--sp-1);
}

.section--brand .stat__value {
  color: #fff;
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.section--brand .stat__label {
  color: rgba(255, 255, 255, 0.78);
}

/* Market cards */
.market-card {
  position: relative;
  padding-top: var(--sp-6);
}

.market-card__flag {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-size: 30px;
  line-height: 1;
}

.market-card__region {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-2);
}

.market-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
}

.market-card__tags li {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}

/* Process steps */
.steps {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-base);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.04rem;
  margin-bottom: var(--sp-2);
}

.step p:last-child {
  margin-bottom: 0;
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Check list */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.checks li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.checks--warn li::before {
  content: "!";
  background: var(--accent-100);
  color: var(--warn);
}

/* Notice / info box */
.notice {
  border-left: 4px solid var(--brand-500);
  background: var(--brand-050);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
}

.notice--warn {
  border-left-color: var(--accent-500);
  background: var(--accent-100);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------- Tables -- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--brand-050);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-800);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--bg-alt);
}

/* ---------------------------------------------------------------- Forms -- */
.field {
  margin-bottom: var(--sp-4);
}

.field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.field__label span[aria-hidden="true"] {
  color: #b42318;
}

.field__hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(35, 137, 209, 0.18);
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: #d92d20;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 var(--sp-4);
}

.form-status {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #ecfdf3;
  color: var(--ok);
  border: 1px solid #abefc6;
}

.form-status--err {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

/* ------------------------------------------------------------ CTA strip -- */
.cta-strip {
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
}

.cta-strip h2 {
  color: #fff;
  margin-bottom: var(--sp-2);
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
}

/* --------------------------------------------------------------- Footer -- */
.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--sp-7) var(--sp-5);
  font-size: var(--fs-sm);
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer h4 {
  color: #fff;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.56);
}

/* ------------------------------------------------------------ Utilities -- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--brand-700);
  color: #fff;
  padding: 11px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-5 { margin-bottom: var(--sp-5); }

/* Browser language auto-detection notice */
.lang-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: min(560px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px 12px 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-900);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
}

.lang-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.lang-banner__close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-alt);
  color: var(--ink-500);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.lang-banner__close:hover {
  background: var(--line);
  color: var(--ink-900);
}

/* ------------------------------------------------------- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------- Responsive -- */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .cta-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding-block: 11px;
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav__link[aria-current="page"] {
    border-bottom-color: var(--brand-600);
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 60px;
  }

  .brand__sub {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------------- QR --
   Scannable code shown beside a direct-contact entry (e.g. LINE).
   Kept square and crisp: the image is a lossless PNG rendered at its native
   size, so it stays sharp on high-DPI screens via width/height attributes. */
.qr {
  margin-top: var(--sp-3);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.qr img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr figcaption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3, #98a2b3);
  text-align: center;
  max-width: 160px;
}

@media print {
  .header,
  .lang,
  .nav-toggle,
  .lang-banner,
  .cta-strip {
    display: none !important;
  }
  body {
    color: #000;
  }
}
